package cn.luoshaocheng.org.mapper;

import cn.luoshaocheng.basic.mapper.BaseMapper;
import cn.luoshaocheng.org.domain.Employee;
import cn.luoshaocheng.system.domain.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    void saveEmployeeRole(@Param("eid") Long id, @Param("rid") Long role_id);

    void removeEmployeeRole(Long eid);

    List<String> getPermissionsByLogininfoId(Long id);

    List<Menu> getMenusByLogininfoId(Long id);

    Employee loadByLoginInfoId(Long id);

    List<Employee> findByShopId(Long shopId);
}


